Global Index
HTML5 JS API Index > DOM Tutorials & Specs

TreeWalker

TreeWalker objects can be created using the createTreeWalker() method.

Properties
Node
currentNode
The currentNode attribute must return what it was initialized to.
NodeFilter?
filter
The filter attribute must return filter.
Node
root
The root attribute must return root.
unsigned long
whatToShow
The whatToShow attribute must return whatToShow.
Operations
Node?
firstChild()
The firstChild() method must traverse children of type first.
Node?
lastChild()
The lastChild() method must traverse children of type last.
Node?nextNode()
Node?
nextSibling()
The nextSibling() method must traverse siblings of type next.
Node?parentNode()
Node?previousNode()
Node?
previousSibling()
The previousSibling() method must traverse siblings of type previous.
Referenced by
DocumentcreateTreeWalker(...)